import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm';

@Entity('tag', { schema: 'aurora' })
export class tag {
  @PrimaryGeneratedColumn({ type: 'int', name: 'ind' })
  ind: number;
  @Column('varchar', {
    name: 'name',
    comment: 'tag名字',
  })
  name: string;
  @Column('varchar', {
    name: 'intro',
    comment: 'tag描述',
  })
  intro: string;
  @Column('int', {
    name: 'creationTime',
    comment: '创建时间',
  })
  creationTime: number;
  @Column('int', {
    name: 'updateTime',
    comment: '修改时间',
  })
  updateTime: number;
  @Column('varchar', {
    name: 'id',
    comment: 'tagId',
  })
  id: string;
}
